package com.ruoyi.business.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.bizsys.domain.ExtMonnifyOrder;
import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.domain.RepaymentOrder;
import com.ruoyi.bizsys.vo.MonnifyReservedAccount;

public interface IMonnifyRepaymentService {


    /**
     * 检查webhook通知的状态
     * @param jsonObject
     * @param custNo
     * @return
     */
    ExtMonnifyOrder checkWebHookStatus(JSONObject jsonObject,String custNo);

    /**
     * 检查接口查询订单状态
     * @param jsonObject
     * @param custNo
     * @return
     */
    ExtMonnifyOrder checkInterfaceStatus(JSONObject jsonObject, String accountReference, String custNo);

    /**
     * monnify还款
     * @param extMonnifyOrder
     */
    void repaymentLock(ExtMonnifyOrder extMonnifyOrder);

    void initRepaymentOrder(LoanIou loanIou);

}
